## Description The auth module (`backend/app/api/auth.py`) currently has no automated tests. Adding basic test coverage would improve code reliability. ## What to do 1. Create `backend/tests/test_auth.py` 2. Add tests for key endpoints: - `POST /api/auth/register` — successful registration - `POST /api/auth/login` — successful login, wrong password - `GET /api/auth/me` — authenticated vs unauthenticated 3. Use `pytest` + `httpx` (already in dev dependencies) ## Resources - Auth router: `backend/app/api/auth.py` - Test config: `backend/pyproject.toml` (`asyncio_mode = auto`) - Run tests: `cd backend && .venv/bin/pytest`
Activity
test(auth): add unit tests for login and /me endpoints
Add Replit Object Storage backend (STORAGE_BACKEND=replit)
test(auth): add unit tests for login and /me endpoints (#306)
fix(channel-cmd): scope /new and /reset session lookup by source_channel
fix(channel-cmd): scope /new and /reset session lookup by source_channel
feat(cli-tools): per-(tool, user) persistent HOME directory
fix(audit-xverify): MCP exec authz closure + decrypt fail-loud + loud…
test(auth): add unit tests for login and /me endpoints (dataelement#306)
fix(runtime): 运行时命令 daemon 崩溃静默——补 done-callback 上报
fix(runtime): 命令 daemon 卡死不可观测——加存活心跳 + 卡死栈 dump
docs(analysis): 编号指代断裂再发根因——跨 run 丢「先做 #1+dataelement#2」绑定(呈现编号与持久化编号分叉)